package cn.exrick.xboot.modules.transport.mapper;

import cn.exrick.xboot.modules.transport.param.QueryUserAddressBookParam;
import cn.exrick.xboot.modules.transport.vo.UserAddressBookVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.transport.entity.UserAddressBook;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * 用户地址簿表数据处理层
 * @author gj
 */
public interface UserAddressBookMapper extends BaseMapper<UserAddressBook> {

    UserAddressBookVo getUserAddressById(@Param("id") Long id);

    IPage<UserAddressBookVo> getByCondition(@Param("page") Page page,@Param("param") QueryUserAddressBookParam param);
}